package com.blackbox.price.service;

import com.blackbox.price.entity.BbChildProject;
import com.blackbox.price.entity.BbProject;
import com.blackbox.price.mapper.BbChildPorjectMapper;
import com.blackbox.price.mapper.BbProjectMapper;
import com.blackbox.price.mapper.common.VisionService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: TWQ
 * @Description:
 * @Date: Created in 下午 23:56 2020/8/19 0024
 * @Modidied By: NO
 */
@Slf4j
@AllArgsConstructor
@Service("childProjectService")
public class ChildProjectService extends VisionService<BbChildProject> {
    @Resource
    private BbChildPorjectMapper bbChildPorjectMapper;

    public List<BbChildProject> postChildProjectListByPid(Integer pid) {
        return bbChildPorjectMapper.queryChildProjectListByPid(pid);
    }

    public BbChildProject postChildProjectById(Integer id) {
        return this.queryById(id);
    }
}
